//
//  TabBarController.m
//  IMHX_Demo
//
//  Created by 郭健 on 16/3/31.
//  Copyright © 2016年 海城. All rights reserved.
//

#import "MainTabBarController.h"
#import "ContactsTableViewController.h"
#import "SettingTableViewController.h"


@interface MainTabBarController ()

@end
@implementation MainTabBarController

- (void)viewDidLoad {
    [super viewDidLoad];
    
    ContactsTableViewController *gjContactsTVC = [[ContactsTableViewController alloc]init];
    UINavigationController *navC = [[UINavigationController alloc]initWithRootViewController:gjContactsTVC];
    
    SettingTableViewController *gjSettingTVC = [[SettingTableViewController alloc]init];
    UINavigationController *navD = [[UINavigationController alloc]initWithRootViewController:gjSettingTVC];
    
    
//    UIStoryboard *zyMain = [UIStoryboard storyboardWithName:@"ZYMain" bundle:nil];
//    UINavigationController *mainNavC = [zyMain instantiateViewControllerWithIdentifier:@"MainNavC"];
//    
//    UIStoryboard *main = [UIStoryboard storyboardWithName:@"Main" bundle:nil];
//    UINavigationController *impressionNavC = [main instantiateViewControllerWithIdentifier:@"ImpressionNavC"];
//    self.viewControllers = @[mainNavC,impressionNavC,navC,navD];
    
    self.viewControllers = @[navC,navD];
    
    
    navD.tabBarItem.title = @"我";
    navC.tabBarItem.title = @"私聊";
//    mainNavC.tabBarItem.title =@"那些年";
//    impressionNavC.tabBarItem.title = @"印记";
}
    
    
    


- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
